package com.runfast.waimai.dao.mapper;

import com.runfast.common.dao.IMapper;
import com.runfast.waimai.dao.model.BaseRole;
import com.runfast.waimai.dao.model.BaseUser;
import com.runfast.waimai.dao.model.BaseUserRole;
import com.runfast.waimai.dao.model.BaseUserRoleExample;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BaseUserRoleMapper extends IMapper<BaseUserRole, Integer, BaseUserRoleExample> {

    List<Integer> queryRoleIdList(Integer userId);
    List<Integer> queryUserIdList(Integer rId);
    List<BaseUser> queryUserList(Integer rId);
    List<BaseRole> queryRoleList(Integer userId);

}